<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateOasTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('oas', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('name')->nullable();
			$table->integer('type')->nullable();
			$table->date('startDate')->nullable();
			$table->integer('putId')->nullable();
			$table->string('putName')->nullable();
			$table->date('putDate')->nullable();
			$table->integer('getId')->nullable();
			$table->string('getName')->nullable();
			$table->date('getDate')->nullable();
			$table->integer('state')->nullable();
			$table->string('goods')->nullable();
			$table->integer('count')->nullable();
			$table->string('unit')->nullable();
			$table->float('price')->nullable();
			$table->float('allPrice')->nullable();
			$table->text('notes', 65535)->nullable();
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('oas');
	}

}
